package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("tb_browse_number")
public class BrowseNumberModel {


    @TableId(type = IdType.AUTO)
    private int id;
    public int userId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    public Timestamp crtTime;

    private Integer type;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String mobile;
    @TableField(exist = false)
    private String birthday;
    @TableField(exist = false)
    private String sex;


}
